from modelscope import snapshot_download 
# 下载modelscope中的模型
model_dir = snapshot_download('BAAI/bge-large-zh-v1.5', local_dir='models/rag_model')
# 打印地址
print(model_dir)







# from transformers import AutoTokenizer, AutoModelForMaskedLM

# tokenizer = AutoTokenizer.from_pretrained("microsoft/mpnet-base", cache_dir="/media/zhjk/fh/RAG")
# model = AutoModelForMaskedLM.from_pretrained("microsoft/mpnet-base", cache_dir="/media/zhjk/fh/RAG")